package factory.factoryMethod;

import factory.bean.Truck;
import factory.bean.Vehicle;

import java.math.BigDecimal;

/**
 * 卡车工厂
 */
public class TruckFactory extends VehicleFactoryMethod {

    @Override
    public Vehicle create() {
        return new Truck(new BigDecimal("350.4"), "东风", 4500.99);
    }

    public static Vehicle createTruck(){
        return new TruckFactory().create();
    }
}
